<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>后台主支付管理</title>
    <link href="css/bootstrap.css" rel="stylesheet" type="text/css">
    <link href="css/mystyle.css" rel="stylesheet" type="text/css">

    <script src="js/jquery-3.2.1.min.js"></script>
    <script src="js/bootstrap.min.js"></script>

    <script>
        function deleteIdea(id) {
            //用户安全提示
            if (confirm("您确定要删除吗？")) {
                //访问路径
                location.href = "${pageContext.request.contextPath}/feedbackServlet?demand=delete&id=" + id;
            }
        }
    </script>

</head>
<body>
<!-- 顶部banner -->
<div class="container">
    <div class="banner">
        <div class="topmenu">
            <table width="280" border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td><img src="images/face/${sessionScope.loginUser.header}" width="60%" alt=""/></td>
                    <td>${sessionScope.loginUser.name}</td>
                </tr>
                <tr>
                    <td colspan="2"><a href="${pageContext.request.contextPath}/productServlet">Easy Buy fsfdg</a></td>
                </tr>
                <tr>
                    <td colspan="2"><a href="BackstageHomeLogin.jsp">退出Easy Buy fsfdg</a></td>
                </tr>
            </table>
        </div>
    </div>
</div>

<!--后台管理主页面-->
<div class="container showMove">

    <table class="table table-bordered bg-info">
        <tbody>
        <tr>
            <td class="col-md-3">当前管理员：${sessionScope.loginUser.name}</td>
            <td class="col-md-3">公告栏：</td>
            <td class="col-md-6">1.终于快差不多了。。。。</td>
        </tr>
        </tbody>
    </table>

    <!--管理页面-->
    <div class="row">
        <!--左侧-->
        <div class="col-md-3 ">
            <div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
                <div class="panel panel-info">
                    <div class="panel-heading" role="tab" id="headingOne">
                        <h4 class="panel-title">
                            <a role="button" data-toggle="collapse" data-parent="#accordion"
                               href="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
                                客户管理 </a>
                        </h4>
                    </div>
                    <div id="collapseOne" class="panel-collapse collapse in" role="tabpanel"
                         aria-labelledby="headingOne">
                        <div class="panel-body">
                            <p>
                                <a href="${pageContext.request.contextPath}/backstageCustomerServlet?demand=show">查看/编辑所有客户资料</a>
                            </p>
                            <p>
                                <a href="${pageContext.request.contextPath}/backstageCustomerServlet?demand=query">客户资料搜索</a>
                            </p>
                        </div>
                    </div>
                </div>

                <div class="panel panel-info">
                    <div class="panel-heading" role="tab" id="heading2">
                        <h4 class="panel-title"><a role="button" data-toggle="collapse" data-parent="#accordion"
                                                   href="#collapse2" aria-expanded="true" aria-controls="collapse2">
                            公告管理 </a></h4>
                    </div>
                    <div id="collapse2" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="heading2">
                        <div class="panel-body">
                            <p><a href="${pageContext.request.contextPath}/noticeServlet?demand=show">查看/编辑所有公告信息</a></p>
                            <p><a href="${pageContext.request.contextPath}/noticeServlet?demand=query">公告信息搜索</a></p>
                        </div>
                    </div>
                </div>

                <div class="panel panel-info">
                    <div class="panel-heading" role="tab" id="heading3">
                        <h4 class="panel-title"><a role="button" data-toggle="collapse" data-parent="#accordion"
                                                   href="#collapse3" aria-expanded="true" aria-controls="collapse3">
                            商品类别管理 </a></h4>
                    </div>
                    <div id="collapse3" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="heading3">
                        <div class="panel-body">
                            <p><a href="${pageContext.request.contextPath}/typeServlet?demand=show">查看/编辑所有商品类别</a></p>
                            <p><a href="${pageContext.request.contextPath}/typeServlet?demand=query">商品类别搜索</a></p>
                        </div>
                    </div>
                </div>

                <div class="panel panel-info">
                    <div class="panel-heading" role="tab" id="heading4">
                        <h4 class="panel-title"><a role="button" data-toggle="collapse" data-parent="#accordion"
                                                   href="#collapse4" aria-expanded="true" aria-controls="collapse3">
                            商品管理 </a></h4>
                    </div>
                    <div id="collapse4" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="heading3">
                        <div class="panel-body">
                            <p><a href="${pageContext.request.contextPath}/commodityServlet?demand=show">查看/编辑所有商品资料</a></p>
                            <p><a href="BackstageCommodityInsert.jsp">添加商品资料</a></p>
                            <p><a href="${pageContext.request.contextPath}/commodityServlet?demand=query">商品资料搜索</a></p>
                        </div>
                    </div>
                </div>

                <div class="panel panel-info">
                    <div class="panel-heading" role="tab" id="heading5">
                        <h4 class="panel-title"><a role="button" data-toggle="collapse" data-parent="#accordion"
                                                   href="#collapse5" aria-expanded="true" aria-controls="collapse3">
                            订单管理 </a></h4>
                    </div>
                    <div id="collapse5" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="heading3">
                        <div class="panel-body">
                            <p><a href="${pageContext.request.contextPath}/ordersServlet?demand=reveal">查看/编辑所有订单信息</a></p>
                            <p><a href="${pageContext.request.contextPath}/ordersServlet?demand=query">订单信息搜索</a></p>
                        </div>
                    </div>
                </div>

                <div class="panel panel-info">
                    <div class="panel-heading" role="tab" id="heading6">
                        <h4 class="panel-title"><a role="button" data-toggle="collapse" data-parent="#accordion"
                                                   href="#collapse6" aria-expanded="true" aria-controls="collapse3">
                            留言管理 </a></h4>
                    </div>
                    <div id="collapse6" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="heading3">
                        <div class="panel-body">
                            <p><a href="${pageContext.request.contextPath}/feedbackServlet?demand=show">查看/编辑所有留言信息</a></p>
                            <p><a href="${pageContext.request.contextPath}/feedbackServlet?demand=query">留言信息搜索</a></p>
                        </div>
                    </div>
                </div>

                <div class="panel panel-info">
                    <div class="panel-heading" role="tab" id="heading7">
                        <h4 class="panel-title"><a role="button" data-toggle="collapse" data-parent="#accordion"
                                                   href="#collapse7" aria-expanded="true" aria-controls="collapse3">
                            支付管理 </a></h4>
                    </div>
                    <div id="collapse7" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="heading3">
                        <div class="panel-body">
                            <p><a href="${pageContext.request.contextPath}/paymentServlet?demand=show">查看/编辑所有支付信息</a></p>
                            <p><a href="${pageContext.request.contextPath}/paymentServlet?demand=query">支付信息搜索</a></p>
                        </div>
                    </div>
                </div>

            </div>
        </div>

        <!--右侧-->
        <div class="col-md-9 tab-content">
            <%--<div class="container" style=" margin-bottom: 20px;">
                <form class="form-inline" method="post">

                    <div class="form-group">
                        <label for="exampleInputName2">id</label>
                        <input name="id" type="text" class="form-control" id="exampleInputName2" placeholder="id">
                    </div>
                    <div class="form-group">
                        <label for="exampleInputEmail2">支付方式</label>
                        <input name="payment" type="text" class="form-control" id="exampleInputEmail2" placeholder="支付方式">
                    </div>
                    <div class="form-group">
                        <label for="exampleInputEmail2">备注</label>
                        <input name="msg" type="text" class="form-control" id="exampleInputEmail" placeholder="备注">
                    </div>
                    <button formaction="${pageContext.request.contextPath}/paymentServlet?demand=add" type="submit" class="btn btn-default">添加</button>
                </form>
            </div>--%>

            <div class="container-fluid">
                <table class="table table-bordered table-striped">
                    <tbody>
                    <tr>
                        <td class="bg-info">头像</td>
                        <td class="bg-info">用户</td>
<%--                        <td class="bg-info" colspan="3">信息</td>--%>
                        <td class="bg-info" colspan="2">信息</td>
                        <td class="bg-info" colspan="2">操作</td>
                        <td class="bg-info" colspan="2">操作</td>
                    </tr>

                    <c:forEach items="${sessionScope.ideaAllList}" var="idea">
                        <tr>
                            <td><img src="images/face/${idea.c_header}" width="100%" alt=""/></td>
                            <td>${idea.c_name}</td>
                            <td colspan="3">${idea.new_message}</td>
                            <td><a href="${pageContext.request.contextPath}/feedbackServlet?demand=detail&id=${idea.id}">详情</a></td>
                            <td><a href="javascript:deleteIdea('${idea.id}');">【删除】</a></td>
                                <%--                            <td><a href="${pageContext.request.contextPath}/backstageCustomerServlet?demand=delete&customerName=${customer.name}">【删除】</a></td>--%>
                        </tr>
                    </c:forEach>

                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>

<div class="footerbg center showMove">
    <p> Designed and built with all the love in the world by @mdo and @fat. Maintained by the core team with the help of
        our contributors.</p>
</div>

</body>
</html>
